﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration.Configuration;
using EFUtil.Core.Conventions;
using System.Reflection;

namespace EFUtil.Tests
{
    public class GlobalStringConvention : GlobalConfigurationConvention<MemberInfo, StringPropertyConfiguration>
    {
        protected override void Apply(MemberInfo memberInfo, StringPropertyConfiguration propertyConfiguration)
        {
            propertyConfiguration.HasMaxLength(51);
        }
    }
}
